//
//  User.h
//  Eath
//
//  Created by yuhaya on 14-9-8.
//  Copyright (c) 2014年 yuhaya. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Genearch.h"

@interface User : NSObject

//登录以及用户信息相关
+ (BOOL) isLogin;
+ (NSString *) token;
+ (NSDictionary *) loginInfo;
+ (Genearch *) loginGen;
+ (void) loginByName:(NSString *)name andPwd:(NSString *)pwd andSuccessBlock:(void(^)())successBlock andFailBlock:(void(^)(NSString *))failBlock;
+(void)sendDeviceToken;
@end
